package com.qc31.comlib.map
/**
 * App配置
 */
data class AppConfig(
    val alarmFilter: Boolean,
    val alarms: Boolean,
    val appGpsColumn: MutableList<AppGpsColumn>,
    val arrears: Boolean,
    val firstPage: String,
    val homeSet: String,
    val mapMarker: MapMarker,
    val quickSet: MutableList<String>
)

/**
 * App gps column
 *
 * @property key
 * @property switch
 * @constructor Create empty App gps column
 */
data class AppGpsColumn(
    val key: String,
    var switch: Int
)

/**
 * 地图图标
 */
data class MapMarker(
    var backCarColor: String = "#3791E9",
    var backSpeedColor: String = "#EA4354",
    var colorType: Int = 1,
    var iconSize: Int = 60,
    var showPlate: Boolean = true,
    var showSpeed: Boolean = false,
    var textColor: String = "#FFFFFF",
    var textSize: Int = 14
){
    override fun toString(): String {
        return "MapMarker(backCarColor='$backCarColor', backSpeedColor='$backSpeedColor', colorType=$colorType, iconSize=$iconSize, showPlate=$showPlate, showSpeed=$showSpeed, textColor='$textColor', textSize=$textSize)"
    }
}
